import {RouteRecordRaw} from "vue-router";
import Layout from '@/Layout/index.vue'
import {renderIcon} from "../../utils";
import {AccessibilityOutline} from '@vicons/ionicons5'
const routeName = 'slide'

const routes:Array<RouteRecordRaw> = [
    {
        path:'/slide',
        name:routeName ,
        component:Layout,
        redirect:'/slide/list',
        meta:{
            title:'轮播管理',
            icon:renderIcon(AccessibilityOutline),
            sort:6
        },
        children:[
            {
                path:'list',
                name:`${routeName}_list`,
                meta:{
                    title:'轮播图列表',
                    icon:renderIcon(AccessibilityOutline)
                },
                component:() => import('@/views/slide/index.vue')
            }
        ]
    }
]
export default routes